package com.fqgj.xjd.user.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.fqgj.xjd.user.dao.UserAuthSmsDao;
import com.fqgj.xjd.user.entity.UserAuthSmsEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.Map;

/**
* User: Karl
* Date: 2020-01-14
* Time: 10:40:44.602
*/

@Repository
public class UserAuthSmsDaoImpl extends AbstractBaseMapper<UserAuthSmsEntity> implements UserAuthSmsDao {


    @Override
    public UserAuthSmsEntity selectUserAuthSmsByUserCode(String userCode, int type) {
        Map params = new HashMap();
        params.put("userCode",userCode);
        params.put("type",type);
        return getSqlSession().selectOne(getStatement("selectUserAuthSmsByUserCode"),params);
    }
}